package ace.module.stock.core.impl.dao.repository;

import ace.cmp.spring.data.jdbc.querydsl.core.repository.QuerydslJdbcBaseRepository;
import ace.module.stock.core.impl.constant.StockCoreConstant;
import ace.module.stock.core.impl.dao.entity.WmsSalesQuantityBatchRecord;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.springframework.stereotype.Repository;

/**
 * 销量变更批次号记录,保存90天 repository.
 *
 * @author Caspar
 */
@DS(StockCoreConstant.DEFAULT_DATA_SOURCE_NAME)
@Repository
public interface WmsSalesQuantityBatchRecordRepository extends QuerydslJdbcBaseRepository<WmsSalesQuantityBatchRecord, Long> {

  long countByWmsAppIdAndSnAndDeleteFlag(Long wmsAppId, String batchSn, Long deleteFlag);
}